<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>钢镚登陆</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="max-age=0"/>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <link type="text/css" rel="stylesheet" href="skin/css/basic.css"/>
    <script type="text/javascript" src="js/jquery-1.12.2.js"></script>
    <script type="text/javascript" src="js/localStorage.js"></script>
    <script type="text/javascript" src="js/tripledes.js"></script>
    <script type="text/javascript" src="js/mode-ecb-min.js"></script>
    <script type="text/javascript" src="js/sign.js"></script>
    <!--加载样式-->
    <script>
        $(window).load(function () {
            $("#status").fadeOut();
            $("#preloader").delay(350).fadeOut("slow");
        })
    </script>
    <script type="text/javascript">

        function login() {
           var username =  $("#username").val();
           var password =  $("#password").val();

           if (isNull(username) === true){
                alert("请填写手机号");
                return;
           }

            if (isNull(password) === true){
                alert("请填写密码");
                return;
            }

           var r = loginU(username,password);
           console.log(r);

           if (r.response.head.status === "0"){
               location.href = "index.html";
           }else {
               alert(r.response.head.desc)
           }

        }

    </script>
</head>

<body>
<div class="w">
    <!--页面加载 开始-->
    <div id="preloader">
        <div id="status">
            <p class="center-text">加载中…<em>网速有点不给力哦!</em></p>
        </div>
    </div>
    <!--页面加载 结束-->
    <!--header 开始-->
    <header>
        <div style="margin-top: 50px;" >
            <img style="position: relative;left: 50%;width: 5.625rem;height: 5.625rem;margin-left: -2.8125rem;" src="image/logo.png" />
        </div>
    </header>
    <!--header 结束-->
    <div class="page" style="margin-top: 30px;" >
        <div class="main">
            <form id="frm_login" method="post" action="">
                <div class="item item-username">
                    <input id="username" class="txt-input txt-username" type="text" placeholder="请输入手机号" value=""
                           name="username">
                </div>
                <div class="item item-password">
                    <input id="password" class="txt-input txt-password ciphertext" type="password" placeholder="请输入密码"
                           name="password" style="display: inline;">
                </div>
                <div class="item item-login-option">
                    <div class="clr"></div>
                </div>
                <div class="ui-btn-wrap"><a onclick="login();" class="ui-btn-lg ui-btn-primary" href="#">用户登录</a></div>
                <div class="ui-btn-wrap"><a class="ui-btn-lg ui-btn-danger" href="reg.html">没有账号？立即注册</a></div>
                <!--<div class="item item-login-other">
                    <dl>
                        <dt>其它登录方式</dt>
                        <dd> <a class="weibo" href="#">
                            <span><img alt="" src="skin/images/login_wb.png" width="40" height="40"></span> </a></dd>
                    </dl>
                </div>-->
            </form>
        </div>
    </div>
</div>
</body>
</html>
